﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AutoMapper;
using Sharp.DataTransferObject;
using Sharp.DataTransferObject.CMS;
using Sharp.WebBooter.Areas.CMS.Models;

namespace Sharp.WebBooter.Areas.CMS
{
    public class AutoMapperProfile: Profile
    {
        public AutoMapperProfile()
        {
            #region 用户
            this.CreateMap<UserDTO, UserViewModel>()
                .ReverseMap();

            this.CreateMap<UserGroupDTO, UserGroupViewModel>()
                .ReverseMap();

            this.CreateMap<PermissionDTO, PermissionViewModel>()
                .ReverseMap();
            #endregion

            #region VIU
            this.CreateMap<VIUDTO, VIUViewModel>()
                .ReverseMap();
            this.CreateMap<VIUDTO, VIUReViewViewModel>()
                .ReverseMap();
            this.CreateMap<ColumnDTO, ColumnViewModel>()
                .ReverseMap();
            this.CreateMap<VIUCategoryDTO, CategoryViewModel>()
                .ReverseMap();
            this.CreateMap<FieldDTO, FieldViewModel>()
                .ReverseMap();
            this.CreateMap<TagDTO, TagViewModel>()
                 .ReverseMap();
            this.CreateMap<NoiseWordDTO, NoiseWordViewModel>()
                      .ReverseMap();
            this.CreateMap<IPBlackListDTO, IPBlackListViewModel>()
                  .ReverseMap();
            this.CreateMap<ApproveHistoryDTO, VIUReViewViewModel>()
                  .ReverseMap();
            this.CreateMap<SpecialDTO, SpecialViewModel>()
                  .ReverseMap();
            this.CreateMap<ApproveHistory4SpecialDTO, SpecialReViewViewModel>()
                  .ReverseMap();
            this.CreateMap<SpecialDTO, SpecialReViewViewModel>()
                  .ReverseMap();
            this.CreateMap<GatherDTO, GatherViewModel>()
              .ReverseMap();
            #endregion

            #region 基础库
            this.CreateMap<ArticleDTO, ArticleViewModel>()
              .ReverseMap();
            #endregion

            #region 会员相关

            #endregion
        }
    }
}